package celiasoft.itasalib.staticdata;

public class ItasaStaticUrls {

	public final static String BASE_URL = "https://api.italiansubs.net/api/rest/";
	public final static String APIKEY_PAR = "?apikey=%s&";
	public final static String AUTHCODE_PAR = "authcode=%s&";
	
	//NEWS
	public final static String BASE_NEWS_URL = BASE_URL + "news";
	public final static String NEWS_ALL_URL = BASE_NEWS_URL + APIKEY_PAR;
	public final static String NEWS_PAGE_URL = NEWS_ALL_URL +"page=%d"; // page = 1;
	public final static String NEWS_SINGLE_URL = BASE_NEWS_URL + "/%d" + APIKEY_PAR;
	public final static String NEWS_SEARCH_URL = BASE_NEWS_URL + "/search" + APIKEY_PAR + "q=%s&page=%d"; // page = 1;
	
	//SHOWS
	public final static String BASE_SHOWS_URL = BASE_URL + "shows";
	public final static String SHOWS_ALL_URL = BASE_SHOWS_URL + APIKEY_PAR;
	public final static String SHOWS_PAGE_URL = SHOWS_ALL_URL +"page=%d"; // page = 1;
	public final static String SHOWS_SINGLE_URL = BASE_SHOWS_URL + "/%d" + APIKEY_PAR;
	public final static String SHOWS_THUMB_URL = BASE_SHOWS_URL + "/%d"+"/folderThumb" + APIKEY_PAR;
	public final static String SHOWS_SEARCH_URL = BASE_SHOWS_URL + "/search" + APIKEY_PAR + "q=%s&page=%d"; // page = 1;
	
	//SUBS
	public final static String BASE_SUBS_URL = BASE_URL + "subtitles";
	public final static String SHOWS_SUBS_LIST_URL = BASE_SUBS_URL + APIKEY_PAR + "show_id=%d&version=%s&page=%d"; // version = null; page = 1;
	public final static String SHOWS_SUBS_SINGLE_URL = BASE_SUBS_URL  + "/%d" + APIKEY_PAR;
	public final static String SHOWS_SUBS_SEARCH_URL = BASE_SUBS_URL + "/search" + APIKEY_PAR + "q=%s&show_id=%d&version=%s&page=%d"; // version = null; page = 1;
	
	//USERS
	public final static String BASE_USERS_URL = BASE_URL + "users";
	public final static String USERS_SINGLE_URL = BASE_USERS_URL + "/" + APIKEY_PAR + AUTHCODE_PAR;
	public final static String USERS_OTHER_SINGLE_URL = BASE_USERS_URL + "/%d" + APIKEY_PAR + AUTHCODE_PAR;

	//LOGIN
	public final static String LOGIN_URL = BASE_USERS_URL + "/login" + APIKEY_PAR + "username=%s&password=%s";	
		
	//MY_ITASA
	public final static String BASE_MYITASA_URL = BASE_URL + "myitasa";
	public final static String MYITASA_SHOWS_URL = BASE_MYITASA_URL  + "/shows" + APIKEY_PAR + AUTHCODE_PAR;
	public final static String MYITASA_LAST_SUBS_URL = BASE_MYITASA_URL  + "/lastsubtitles" + APIKEY_PAR + AUTHCODE_PAR + "page=%d";  // page = 1;
	public final static String MYITASA_NEXT_EPISODES_URL = BASE_MYITASA_URL  + "/nextepisodes" + APIKEY_PAR + AUTHCODE_PAR + "page=%d";  // page = 1;

	public final static String MYITASA_ADD_SHOW_URL = BASE_MYITASA_URL  + "/addShowToPref" + APIKEY_PAR + AUTHCODE_PAR + "show_id=%d&version=$s";
	public final static String MYITASA_REMOVE_SHOW_URL = BASE_MYITASA_URL  + "/removeShowFromPref" + APIKEY_PAR + AUTHCODE_PAR + "show_id=%d&version=$s";

	
	// HTML
	public static final String SHOW_CALENDAR_URL = "http://www.italiansubs.net/icalendar/month.php?cal=itasa&getdate=%s"; //getdate=YYYYmmdd 
	public static final String TRANSLATIONS_STATUS_URL = "http://www.italiansubs.net/index.php?option=com_barreavanzamento&Itemid=36"; 
	
	//WEB
	public final static String BASE_URL_SERIES_WEB_PAGE = "http://www.italiansubs.net/index.php?option=com_info&Itemid=12&idserie=%d";
	public final static String BASE_URL_SUBS_WEB_PAGE = "http://www.italiansubs.net/index.php?option=com_info&Itemid=12&idserie=%d&episodio=%dx%d";


	
}
